import sqlite3
import requests
with open("D:\\13027\\i-dle\\soyeon.jpg",'rb') as f:
    img1=f.read()
with open("D:\\13027\\i-dle\\yuqi.jpg",'rb') as f:
    img2=f.read()
with open(r"D:\13027\i-dle\miyeon.jpg",'rb') as f:
    img3=f.read()
with open("D:/13027/i-dle/minnie.jpg",'rb') as f:
    img4=f.read()
with open("D:/13027/i-dle/shuhua.jpg",'rb') as f:
    img5 = f.read()
with sqlite3.connect("idle.db") as conn:
    cursor=conn.cursor()
    cursor.execute("UPDATE idle SET photo=? WHERE id=?",(img1,1))
    cursor.execute("UPDATE idle SET photo=? WHERE id=?",(img2,2))
    cursor.execute("UPDATE idle SET photo=? WHERE id=?",(img3,3))
    cursor.execute("UPDATE idle SET photo=? WHERE id=?",(img4,4))
    cursor.execute("UPDATE idle SET photo=? WHERE id=?",(img5,5))